package asteroids.model.programs.types;

import asteroids.model.Ship;
import asteroids.model.programs.expressions.BooleanLiteral;
import asteroids.model.programs.expressions.ExprBoolEvaluator;
import asteroids.model.programs.expressions.Expression;

public class BooleanType extends Type {

	public BooleanType() {
		
	}

	@Override
	public Expression getLiteral(Expression e, Ship s) {
		ExprBoolEvaluator ebe = new ExprBoolEvaluator(s);
		boolean b = e.accept(ebe);
		return new BooleanLiteral(e.getLine(), e.getColumn(), b);
	}

}
